<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Fee Dues List</title>
</head>


<body>
<h2 align="center">Due List</h2>

<table width="auto" border="1" align="center" cellpadding="5">
  <tr>
    <th width="auto" scope="col">Hallticket No:</th>
    <th  scope="col">Name</th>
    <th scope="col">Branch</th>
    <th  scope="col">Year</th>
    <th  scope="col">Total Fee</th>
    <th scope="col">Fee Paid</th>
    <th  scope="col">Fee Due</th>
  </tr>
 <c:forEach var="student" items="${students}">
	  <c:forEach var="feeDetails" items="${student.feeDetailses}">
		 <c:if test="${feeDetails.feeDue > 0}">
			  <tr>
			    <td>${student.htno}</td>
			    <td>${student.name}</td>
			    <td>${student.branch}</td>
			    <td>${feeDetails.id.yearStudy}</td>
			    <td>${feeDetails.totalFee}</td>
			    <td>${feeDetails.feePaid}</td>
			    <td><b>${feeDetails.feeDue}</b></td>
			  </tr>
		  </c:if>
		</c:forEach>
  </c:forEach>
</table>
</body>
</html>
